<form action="/reward/searchStaffInfo" class="clearfix" data-action-html="#action_load_body" method="GET" id="searchStaffForm">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
    	<td width="15%" align="right" class="bg">考核月份:</td>
        <td width="35%">
        	<input id="tmonth" name="tmonth" value="${preMonth}"  type="text" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM'})" 
        </td>
    </tr>
		<tr>
			<td class="bg" align="right">姓名:</td>
			<td>
				<input type="text" id="userName" name="userName" class="tabInp action-valid-field"   data-action-valid-rule="required;"value="${vo.billCode}" id="staffName">
				<span class="action-field-error" for="loanRate" style="color:red;"></span>
			</td>
			<td class="bg" align="right">考核类型:</td>
			<td>
				<select id="evaluateType" name="evaluateType">
					<option value>请选择</option>
					<#list dics as dic>
						<option value="${dic.no}">${dic.name}</option>	
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="bg" align="right">入职时间:</td>
			<td>
				<@date id="startDate" name="startDate" class="tabInp" value=""/>-
				<@date id="endDate" name="endDate" class="tabInp" value=""/>
			</td>
			<td class="bg" align="right">省区:</td>
			<td>
				<select id="province" name="province">
					<option value>请选择</option>
					<#list provinces as prov>
						<option value="${prov.code}">${prov.name}</option>								
					</#list>
				</select>	
			</td>
		</tr>
		<tr>
			 <td class="bg"></td>
             <td>
             	<input type="hidden" name="pageIndex" value="0"/>
             	<@permission permissionName="rewardSearchPerInfo">
             		<input type="submit" value="查询" class="btn_auto_30 btn_blue"/>
             	</@permission>
             </td>
             <td>
				<@permission permissionName="rewarddownPerInfo">
					<input type="button" class="btn_auto_30 btn_blue" onclick="download()" value="导出"/>
				</@permission>	
			</td>
             <td>
             	<@permission permissionName="rewardAddPerInfo">
             		<a class=" btn_auto_30 btn_blue" href="/reward/toAddStaff">新增</a>
             	</@permission>
             </td>
        </tr>
 	</table>
</form>
<script type="text/javascript">
	function download() {
		$("#searchStaffForm").attr("action" , "/reward/downloadStaff");
		var tmonth = document.getElementById("tmonth").value;
		var userName = document.getElementById("userName").value;
		var evaluateType = document.getElementById("evaluateType").value;
		var startDate = document.getElementById("startDate").value;
		var endDate = document.getElementById("endDate").value;
		var province = document.getElementById("province").value;
		$("#searchStaffForm").submit();
		$("#searchStaffForm").attr("action" , "/reward/searchStaffInfo");
	}
</script>
